﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Odeme : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Sessions.UyeId==-1)
            Response.Redirect(Page.GetRouteUrl("UyeGiris", new object { }));

        if (!IsPostBack)
            ddlKargo.KargoDoldur();
    }
    //protected void btnAdres_Click(object sender, EventArgs e)
    //{
    //    adres.Attributes.Add("Style", "position:absolute;background-color:gainsboro;top:0px;left:0px;margin-top:30px;margin-left:50px;width:750px;display:normal");
    //}
    protected void btnKaydet_Click(object sender, EventArgs e)
    {
        //DataAccess.InsAdres(txtAdresTanimi.Text, txtAdres.Text, txtIlce.Text, txtSehir.Text, txtUlke.Text, txtTelefon.Text, txtDetay.Text);
    }
    protected void btnOdeme_Click(object sender, EventArgs e)
    {
        int AdresId = Convert.ToInt16(ddlAdres.SelectedItem.Value);
        int KargoId = Convert.ToInt16(ddlKargo.SelectedItem.Value);

        string dateTeslimTarihi = txtTeslimatTarihi.Text;

        //DataAccess.InsSiparis(ddlOdemeSekli.SelectedValue, AdresId, KargoId, txtTeslimEdilecekKisi.Text, dateTeslimTarihi, txtTeslimatNotu.Text);
    }
}